
const { ccclass, property } = cc._decorator;

@ccclass
export default class ItemView extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    content: string = ''
    start() {
        
    }


    refresh(){
        this.label.string = this.content;
        // cc.log(' this.content == ',this.content)
    }
    // update (dt) {}

    onButtonClick(){
        cc.log(' operty ', this.label.string ,this.node.opacity)

    }

    
    onButtonClick2(){
        cc.log(' onButtonClick2 ', this.label.string ,this.node.opacity)

    }
}
